package rj.db.utils;
import java.sql.*;
public class ConnectionBean
{
	static Connection con = null;
	public static Connection getConnection()
	{
		if(con == null)
		{
			try{
				Class.forName("com.mysql.jdbc.Driver");
				con=DriverManager.getConnection("jdbc:mysql://localhost:3306/mithya","root","admin");
			}catch(Exception e){System.out.println(e);}
		}
		return con;
	}
}